package com.antler.smt.service.admin;

import com.antler.smt.entity.OrderEntity;
import com.antler.smt.entity.RequirementEntity;
import com.antler.smt.enums.ResultCodeEnum;
import com.antler.smt.request.admin.EditRequirementAddressReq;
import com.antler.smt.request.admin.GetRequirementListReq;
import com.antler.smt.response.admin.GetRequirementListResp;
import com.antler.smt.response.base.Result;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 用户发布需求接口
 *
 * @author zhangyi
 * @date 2018/3/23 10:27
 */
public interface RequirementService {

    /**
     * 获取发布需求列表
     *
     * @param requirementId 请求发布需求id
     * @return 用户列表实体
     */
    Result<GetRequirementListResp> requirementInfo(long requirementId);

    /**
     *  需求驳回
     *
     * @param requirementId
     * @return
     */
    Result<ResultCodeEnum> requirementFail(Long requirementId);

    /**
     *  需求修改
     *
     * @param request
     * @return
     */
    Result<ResultCodeEnum> requirementUpdate(RequirementEntity request);

    /**
     *  需求通过
     *
     * @param requirementId
     * @return
     */
    Result<ResultCodeEnum> requirementPass(Long requirementId);

    /**
     * 修改发布需求的地址
     *
     * @param requirementAddressReq
     * @return
     */
    Result<ResultCodeEnum> editRequirementAddress(EditRequirementAddressReq requirementAddressReq);
}
